package edu.ensmp.ckEditor.control;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.JTextField;

import edu.ensmp.ckEditor.ckModel.CKModel;
import edu.ensmp.ckEditor.gui.EditorFrame;

public class TextListener implements MouseListener {
	
	private EditorFrame _editorFrame;	
	private CKModel _model;
	
	public TextListener(CKModel model, EditorFrame editorFrame){
		this._model = model;
		this._editorFrame = editorFrame;
	}

	
	public void mouseClicked(MouseEvent e) {

		if (e.getClickCount() == 2) {
			JTextField text = (JTextField) e.getSource();
			text.setText("");
		}
		
	}

	
	public void mousePressed(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	
	public void mouseReleased(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	
	public void mouseEntered(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	
	public void mouseExited(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

}
